﻿#define _CRT_SECURE_NO_WARNINGS 1
#include <stdio.h>
int main()
{
    FILE* pFile;
    char zhanghao[10][100] = { 0 };
    char mima[10][100] = { 0 };
    char mystring[100];
    int i = 0;
    int j = 0;
    int tmp = 0;
    pFile = fopen("test.txt", "r");
    if (pFile == NULL)
        perror("Error opening file");
    else 
    {
        while (fgets(mystring, 100, pFile) != NULL)
        {
            j = 0;
            for (tmp = 0; mystring[tmp] != ':'; tmp++, j++)
                zhanghao[i][j] = mystring[tmp];
            tmp++;
            for (j = 0; mystring[tmp] != '\n'; tmp++,j++)
                mima[i][j] = mystring[tmp];
            i++;
        }
        fclose(pFile);
    }
    int k = 0;
    scanf("%d", &k);
    printf("%s %s", zhanghao[k], mima[k]);
    return 0;
}